class Person {
  name: string
  age: number

  constructor(name: string, age: number) {
    this.name = name;
    this.age = age
  }

  say() {

  }
}

// let p1 = new Person("张三", 21)
// console.log(p1);

class Student extends Person {
  address: string
  constructor(name: string, age: number, address: string) {
    super(name, age)
    // this.name=name;
    // this.age=age;
    this.address = address
  }


  say() {
    console.log(`我是${this.name}，我今年${this.age}岁`)
  }
}


let s1 = new Student("小红", 21, ["北京", "海淀区", "上庄路"])

